package com.cdc.video;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.MediaController;
import android.widget.VideoView;

import com.cdc.videodemo.BaseActivity;
import com.cdc.videodemo.R;


public class VideoActivity2 extends BaseActivity {

	 JCVideoPlayerStandard jcVideoPlayerStandard;
	@SuppressLint("NewApi")
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_video_2);
		  jcVideoPlayerStandard = (JCVideoPlayerStandard) findViewById(R.id.jc_video);
	        jcVideoPlayerStandard.setUp(MP4
	                , JCVideoPlayerStandard.SCREEN_LAYOUT_LIST, "akkla");
	        
	       

	       

	}

	@Override
	protected void onResume() {
		super.onResume();
		
	}

	@Override
	protected void onPause() {
		super.onPause();
		  JCVideoPlayer.releaseAllVideos();
	
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	
	}

}
